<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.pengtu.security.SpringSecurityUtils"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>Mini-Web 收文管理</title>
</head>
<body>
	<form id="mainForm" action="received_art.action" method="get"
		class="yform">
		<div id="message">
			<s:actionmessage theme="custom" cssClass="success" />
		</div>
		<div id="filter"></div>
		<div id="content">
			<table id="contentTable">
				<tr>
					<th>公文自编号</th>
					<th>文件标题</th>
					<th>发文部门或机关</th>
					<th>发布时间</th>
					<th>公文状态</th>
					<th>密级程度</th>
					<th>紧急程度</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${taskList }" var="receivedArt">
					<tr>
						<td><a href="received_art!look.action?id=${receivedArt.id }">${receivedArt.officeNum
								}</a>
						</td>
						<td>${receivedArt.title }&nbsp;</td>
						<td>${receivedArt.department.depName }&nbsp;</td>
						<td>${receivedArt.publishDate }</td>
						<td>${receivedArt.state }&nbsp;</td>
						<td>${receivedArt.secret }&nbsp;</td>
						<td>${receivedArt.crash }&nbsp;</td>
						<td>&nbsp; <security:authorize ifAnyGranted="ROLE_修改用户">
								<c:if test="${receivedArt.state == '创建' }">
									<a href="received_art!submit.action?id=${receivedArt.id }&&taskId=${receivedArt.taskId}">提交</a>
								</c:if>
							</security:authorize> <c:if test="${receivedArt.state != '创建' }">
								<a href="picture!picture.action?id=${receivedArt.id }">查看流程</a>
							</c:if>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>

		<div>
			第${page.pageNo}页, 共${page.totalPages}页 <a
				href="javascript:jumpPage(1)">首页</a>
			<s:if test="page.hasPre">
				<a href="javascript:jumpPage(${page.prePage})">上一页</a>
			</s:if>
			<s:if test="page.hasNext">
				<a href="javascript:jumpPage(${page.nextPage})">下一页</a>
			</s:if>
			<a href="javascript:jumpPage(${page.totalPages})">末页</a>
		</div>
	</form>
</body>
</html>